#include "LevelRules.h"

//Add rules
void cLevelRules::AddRule( const cLevelRule &lRule)
{
  mRuleList.push_back(lRule);
}

//Evaluate rules
void cLevelRules::EvalRules()
{      
  for (cLevelRuleListIt lcIt = mRuleList.begin(); lcIt != mRuleList.end(); lcIt++)
    (*lcIt).EvalRule();
}

//Destructor
cLevelRules::~cLevelRules()
{
  //Clear the list
  mRuleList.clear();
}
